import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";
import TooltipComponent from "@runtime/UnityEngineBridge/TooltipComponent";

/**
 * 提示信息隐藏
 */
export default class TooltipHideMessageHandler extends MessageHandler<ClientMessage.TooltipHideMessage> {
    protected async RunAsync(message: ClientMessage.TooltipHideMessage): Promise<void> {
        TooltipComponent.Default.Remove(message.InstanceId);
    }
}
